package com.bl.student.dao.model;

import com.bl.student.common.enums.ApplyType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by liangweikang on 18/3/10.
 */

@Entity
@Data
@Table(name = "USER_APPLY")
@ApiModel(value = "StudioEntity", description = "画室-用户表")
@DynamicInsert
@DynamicUpdate
public class StudioEntity {

    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @Enumerated(EnumType.STRING)
    @ApiModelProperty(value = "活动类型")
    private ApplyType type;

    @ApiModelProperty(value = "用户id")
    @Column(name = "user_id")
    private String userId;

    @ApiModelProperty(value = "画室id")
    @Column(name = "biz_id")
    private String bizId;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @Column(name = "update_time")
    private Date updateTime;
}
